﻿package mortal.game.view.platform
{
    import flash.geom.*;
    import mortal.common.global.*;
    import mortal.game.resource.*;

    public class PlatformDownLoadUtil extends Object
    {
        public static const clientType1:int = 2;
        public static const clientType2:int = 3;

        public function PlatformDownLoadUtil()
        {
            return;
        }// end function

        public static function getIconResName(param1:int = 2) : String
        {
            var _loc_2:* = ResFileConst.Platform37WanDownLoadIcon;
            switch(ParamsConst.instance.platformCode)
            {
                case PlatformConst.Platform37Wan:
                {
                    _loc_2 = ResFileConst.Platform37WanDownLoadIcon;
                    break;
                }
                case PlatformConst.PlatformThunder:
                {
                    _loc_2 = ResFileConst.PlatformThunderDownLoadIcon;
                    break;
                }
                case PlatformConst.PlatformSougou:
                {
                    if (param1 == clientType1)
                    {
                        _loc_2 = ResFileConst.PlatformSougouDownLoadIcon;
                    }
                    else
                    {
                        _loc_2 = ResFileConst.PlatformSougouSkinIcon;
                    }
                    break;
                }
                default:
                {
                    break;
                }
            }
            return _loc_2;
        }// end function

        public static function getPanelData(param1:int = 2) : PlatformDownLoadShowData
        {
            var _loc_2:PlatformDownLoadShowData = null;
            _loc_2 = new PlatformDownLoadShowData();
            switch(ParamsConst.instance.platformCode)
            {
                case PlatformConst.Platform37Wan:
                {
                    break;
                }
                case PlatformConst.PlatformThunder:
                {
                    break;
                }
                case PlatformConst.PlatformSougou:
                {
                    if (param1 == clientType1)
                    {
                        _loc_2.title = "搜狗游戏大厅";
                        _loc_2.bgResName = ImagesConst.platformSougouBg1;
                        _loc_2.size = new Point(706, 474);
                        _loc_2.getGiftBtnPos = new Point(500 - 100 + 67, 500 - 240 + 120);
                        _loc_2.getGiftBtnSize = new Point(130, 44);
                        _loc_2.downLoadBtnPos = new Point(300 - 60 + 224, 500 - 240 - 31);
                        _loc_2.giftListPos = new Point(200 + 31 + 149 + 160, 300 + 51 - 67);
                    }
                    else
                    {
                        _loc_2.title = "搜狗输入法";
                        _loc_2.bgResName = ImagesConst.platformSougouBg2;
                    }
                    break;
                }
                default:
                {
                    break;
                }
            }
            return _loc_2;
        }// end function

        public static function getExtends(param1:int = 2) : int
        {
            var _loc_2:int = 2;
            switch(ParamsConst.instance.platformCode)
            {
                case PlatformConst.Platform37Wan:
                {
                    break;
                }
                case PlatformConst.PlatformThunder:
                {
                    break;
                }
                case PlatformConst.PlatformSougou:
                {
                    if (param1 == clientType1)
                    {
                        _loc_2 = 2;
                    }
                    else
                    {
                        _loc_2 = 3;
                    }
                    break;
                }
                default:
                {
                    break;
                }
            }
            return _loc_2;
        }// end function

    }
}
